# 6.5
rivers = {
    'nile': 'egypt',
    'changjiang': 'china',
    'aerfeier': 'english',
}
for river, country in rivers.items():
    print(f"The {river} runs through {country}")

for river1 in rivers.keys():
    print(river1)

for country1 in rivers.values():
    print(country1)

# 6.6
favorite_languages ={ 'jen': 'python',
                      'sarah': 'c',
                      'edward': 'rust',
                      'phil': 'python'
                     }

names = ['jen', 'sarah', 'edward', 'phil', 'albert']

for name in names:
    if name in favorite_languages.keys():
        print(f'{name.title()}: 谢谢你参与调查!')
    else:
        print(f'{name.title()}: 请参与调查!')